<script setup lang="ts">
import GrandChild from "@/views/provideInject/GrandChild.vue";
</script>

<template>
<div class="child">
  <h1>我是子组件1</h1>
  <GrandChild></GrandChild>
</div>
</template>

<style scoped>
.child {
  width: 500px;
  height: 500px;
  background: skyblue;
}
</style>